package com.zl.controller;

import com.zl.domain.Order;
import com.zl.feign.UserOrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zl
 * @date 2023/3/21
 * @apiNote
 */
@RestController
public class UserController {

    @Autowired
    public UserOrderFeign userOrderFeign;

    //查询订单
    @GetMapping("/user/findOrder")
    public Order findOrder(){
        Order order = userOrderFeign.getOrderByUserId(1);
        return order;
    }


}
